<?php

//商户名
const SHANGHU = '商城';

//表前缀
const QZ = 'sc_';

//网站上传文件位置
const UPLOAD = 'upload/';

//小程序账户
const XCX_USER = 'panjj1024@163.com';

//小程序 密码
const XCX_PWD = 'yuwen520';

//小程序 appid
const APPID = 'wx00e5611d8d677839';

//小程序 密匙
const SECRET = 'df890df9252216d37115bdeb612bcf25';

//商户 账户
const MCHID = '1600741187';

//商户
const KEY = '9876hbnc5643dscv0987yhng4433weqa';

//设置 ini
ini_set("display_errors", "on");
ini_set("max_execution_time", "3600");
ini_set('memory_limit', '120M');
ini_set('max_input_time', '3600');
ini_set('file_uploads', 'on');
ini_set('post_max_size', '100M');
ini_set('upload_max_filesize', '80M');

//自动加载类 __autoload 在高版本php不好使
function autoLoad($classname)
{
    $classpath = 'core/class/' . $classname . '.php';
    if (file_exists($classpath)) {
        require_once $classpath;
    } else {
        echo 'class file ' . $classpath . 'not found !';
    }
}

//将autoloadHandler注册为自动加载
spl_autoload_register('autoLoad');
const HOSTPORT = 3306;

//-------数据库配置-------------------
const DIR = 'http://localhost/wy.audiovdieo.xyz/xiangmu/sc/wy/';
const HOSTADDRESS = '127.0.0.1';
const HOSTUSERNAME = 'root';
const HOSTPASSWORD = '1234';
const HOSTDB = 'wangyan';

/*/
//我的百度

const DIR = 'https://wy.audiovdieo.xyz/xiangmu/sc/wy/';
const HOSTADDRESS = 'b-nvpaq5c5lg8lx2.bch.rds.bj.baidubce.com';
const HOSTUSERNAME = 'b_nvpaq5c5lg8lx2';
const HOSTPASSWORD = 'B9Nl5Ctfj6OX5HVT';
const HOSTDB = 'b_nvpaq5c5lg8lx2';
//*/

//APP变量
const APP = 1;

//通知地址
const TONGZHIURL = 'https://wy.audiovdieo.xyz/xiangmu/sc/wy/pay/example/TongZhi.php';

//通知记录文件
const PAYLOG = 'zhifulog.txt';
